package com.weigee.ktv.v.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.weigee.ktv.R;
import com.weigee.ktv.m.observer.StartMainActivityObserver;
import com.weigee.ktv.m.subscribe.StartMainSubscribe;

import io.reactivex.Observable;

/**
 * Created by 林德 on 2017/4/12 15:37.
 * <p/>
 */
public class WelcomeFragment extends BaseFragment
{
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState)
    {
        return inflater.inflate(R.layout.act_welcome, container, false);
    }

    @Override
    protected void initView(View view, @Nullable Bundle savedInstanceState)
    {
        Observable.create(new StartMainSubscribe()).subscribe(new StartMainActivityObserver(getActivity()));
    }
}
